<%@page import="java.util.Enumeration"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Contenido de la Sesion</title>
    </head>
    <body>
        <h1>Contenido de la Sesion</h1>
        <table border="1">
            <tr>
                <td>Variable</td>
                <td>Valor</td>
            </tr>            
            <% for (Enumeration e = session.getAttributeNames(); e.hasMoreElements(); ) {     
                String attribName = (String) e.nextElement();
                Object attribValue = session.getAttribute(attribName);
            %>
            <tr>
                <td><%=attribName%></td>
                <td><%=attribValue%></td>
            </tr>
            <%}%>
        </table>
            
    </body>
</html>
